package com.yami.shop.events.orderEvent;

import org.springframework.context.ApplicationEvent;

public class Event extends ApplicationEvent {
    private static final long serialVersionUID = 1L;

    private final Long id;

    //status=0时,是app确认收货成功发送的事件
    private final Integer status;

    public Event(Object source, Long id, Integer status) {
        super(source);
        this.id = id;
        this.status = status;
    }

    public Long getId() {
        return this.id;
    }
    public Integer getStatus() {
        return this.status;
    }
}
